﻿<Window x:Class="TestVisioCanvas.Dialogs.ProductShowCase"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ProductShowCase" Height="480" Width="640">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.6*"/>
            <ColumnDefinition Width="0.4*"/>                  
        </Grid.ColumnDefinitions>
        <Image Grid.Column="0" Stretch="Uniform" Name="_productImage" Source="{Binding ImagePath}"/>
        <StackPanel Grid.Column="1">
            <StackPanel Orientation="Horizontal" Margin="10">
                <TextBlock Width="100" Text="Categoria: " FontSize="16" Grid.Column="0"/>
                <TextBlock Text="{Binding Category}" FontSize="16" Grid.Column="1"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="10">
                <TextBlock Width="100" Text="Nome: " FontSize="16" Grid.Column="0"/>
                <TextBlock Text="{Binding ProductName}" FontSize="16" Grid.Column="1"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="10">
                <TextBlock Width="100" Text="Forma: " FontSize="16" Grid.Column="0"/>
                <TextBlock Text="{Binding ProductShape}" FontSize="16" Grid.Column="1"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="10">
                <TextBlock Width="100" Text="Dimensioni: " FontSize="16" Grid.Column="0"/>
                <TextBlock Text="{Binding Dimensions}" FontSize="16" Grid.Column="1"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="10">
                <TextBlock Width="100" Text="Materiale: " FontSize="16" Grid.Column="0"/>
                <TextBlock Text="{Binding Material}" FontSize="16" Grid.Column="1"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="10">
                <TextBlock Width="100" Text="Colore: " FontSize="16" Grid.Column="0"/>
                <Rectangle Width="52" Height="52">
                    <Rectangle.Fill>
                        <SolidColorBrush Color="{Binding Color}"/>
                    </Rectangle.Fill>
                </Rectangle>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="10">
                <TextBlock Width="100" Text="Prezzo" FontSize="16" Grid.Column="0"/>
                <TextBlock Text="{Binding PriceNoVATStr}" FontSize="16" Grid.Column="1"/>
            </StackPanel>
        </StackPanel>        
    </Grid>
</Window>
